package lec_04_Heap;

import java.util.Arrays;

public class test04 {

	
	public static void main(String[] args) {
		
		int A[] = {6,9,5,7,3,2,2,1,4};
		Max_Heap max_Heap = new Max_Heap(A);
		int[] ansArr = max_Heap.Heap_Sort();
		System.out.println(Arrays.toString(ansArr));
		max_Heap.Insert(14);
		max_Heap.Insert(12);

		System.out.println(max_Heap.Extract_Max());
		System.out.println(max_Heap.Max());
		ansArr = max_Heap.Heap_Sort();
		System.out.println(Arrays.toString(ansArr));
	 }
}
